package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 礼物数据统计
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_present_statistics")
public class PresentStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 礼物ID
     */
    private Long presentId;

    /**
     * 正面打开量
     */
    private Long frontOpenCount;

    /**
     * 背面打开量
     */
    private Long backOpenCount;

    /**
     * 评论打开量
     */
    private Long commentOpenCount;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getPresentId() {
        return presentId;
    }

    public void setPresentId(Long presentId) {
        this.presentId = presentId;
    }
    public Long getFrontOpenCount() {
        return frontOpenCount;
    }

    public void setFrontOpenCount(Long frontOpenCount) {
        this.frontOpenCount = frontOpenCount;
    }
    public Long getBackOpenCount() {
        return backOpenCount;
    }

    public void setBackOpenCount(Long backOpenCount) {
        this.backOpenCount = backOpenCount;
    }
    public Long getCommentOpenCount() {
        return commentOpenCount;
    }

    public void setCommentOpenCount(Long commentOpenCount) {
        this.commentOpenCount = commentOpenCount;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "PresentStatistics{" +
            "id=" + id +
            ", presentId=" + presentId +
            ", frontOpenCount=" + frontOpenCount +
            ", backOpenCount=" + backOpenCount +
            ", commentOpenCount=" + commentOpenCount +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
